﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="GeoWeb.Demo.DataContext.Demo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>数据库操作ORM演示DEMO</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 100%;">
        <br />
        <br />
        标题：<asp:TextBox ID="txt_DemoName" runat="server"></asp:TextBox><br />
        <asp:HiddenField ID="hdf_DemoID" runat="server" />
        内容：<asp:TextBox ID="txt_DemoInfo" TextMode="MultiLine" Rows="3" Columns="100" runat="server"></asp:TextBox><br />
        <asp:Button ID="btn_Submit" runat="server" Text=" 提 交 " OnClick="btn_Submit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
            ID="btn_edit" runat="server" Text=" 编 辑 " onclick="btn_edit_Click"/><br />
        <br />
        <asp:GridView ID="Gv_DemoData" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="Demo_ID" HeaderText="ID" />
                <asp:BoundField DataField="Demo_Name" HeaderText="名称" />
                <asp:BoundField DataField="Demo_Info" HeaderText="详细" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href='Demo.aspx?type=delete&id=<%#Eval("Demo_ID") %>' target="_self">删除</a>
                        <a href='Demo.aspx?type=edit&id=<%#Eval("Demo_ID") %>' target="_self">编辑</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
